<template>
  <svg aria-hidden="true" :width="props.size" :height="props.size" style="vertical-align: bottom">
    <use :xlink:href="symbolId" :fill="color" />
  </svg>
</template>

<script setup>
import { computed } from 'vue'

const props = defineProps({
  prefix: {
    type: String,
    default: 'icon'
  },
  name: {
    type: String,
    default: ''
  },
  color: {
    type: String,
    default: '#8a919f'
  },
  size: {
    type: [String, Number],
    default: 16
  }
})
console.log(props)
const symbolId = computed(() => `#${props.prefix}-${props.name}`)
</script>

<style lang="scss" scoped></style>
